package io.renren.modules.biz.dao;

import io.renren.modules.biz.entity.CountDto;
import io.renren.modules.biz.entity.SendPacketEntity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * 当前发包表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-09-03 14:51:31
 */
public interface SendPacketDao extends BaseMapper<SendPacketEntity> {

	/**
	 * 统计发包抢包金额
	 * 
	 * @param memberId
	 * @param mobile
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	CountDto sumPacketAmount(@Param("memberId") String memberId, @Param("mobile") String mobile, @Param("startDate") String startDate, @Param("endDate") String endDate);

	/**
	 * 查询只机器人发抢的红包
	 * 
	 * @param endDate
	 * @return
	 */
	List<Long> onlyRobotPacketIds(@Param("startDate") String startDate, @Param("endDate") String endDate);
}
